package com.company.hrmadmin.modules.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.company.hrmadmin.modules.domain.Role;
import com.company.hrmadmin.modules.service.RoleService;
import com.company.hrmadmin.modules.mapper.RoleMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author Xmirror
* @description 针对表【sys_role】的数据库操作Service实现
* @createDate 2022-03-18 15:39:37
*/
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role>
    implements RoleService{

    @Resource
    private RoleMapper roleMapper;

    @Override
    public Role selectByRoleId(Integer roleId) {
        return roleMapper.selectById(roleId);
    }
}




